<ui:composition 
xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
    xmlns:pm="http://primefaces.org/mobile"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
    template="template/templateLogin.xhtml">
    
    <ui:define name="content">
    
        <pm:content styleClass="jqm-content">
             <h:form id="login">
            	
             		
             	 <c:if test="#{userController.mensaje!=null}">
					<h:outputText style="color:red;"  id="msje" value="#{userController.mensaje}" />
				 </c:if>
             	
             	
               <pm:field>
                <p:outputLabel for="basic" value="Usuario:" />
                <p:inputText id="basic" value="#{userController.usuario}" required="true" label="basic" />
               </pm:field>
               <pm:field>
   				 <p:outputLabel for="password" value="Password:" />
   				 <p:password id="password" value="#{userController.password}" required="true" label="password" />
			   </pm:field>
			
			   <p:commandButton  id="btn" value="Ingresar" ajax="true"  styleClass="ui-btn-b"
						action="#{userController.validarUsuario}"   icon="check" />
           	
            </h:form>
        </pm:content>
    </ui:define>
    
</ui:composition>